package com.ruoyi.boc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.Valid;
import java.util.List;

/**
 * 入湖生成业务对象 boc_lake_table
 *
 * @author ruoyi
 * @date 2025-02-16
 */
public class BocLakeTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long tableId;

    /** 表名称 */
    @Excel(name = "表名称")
    private String tableName;

    /** 表描述 */
    @Excel(name = "表描述")
    private String tableComment;

    /** 入湖名称 */
    @Excel(name = "入湖名称")
    private String lakeName;

    /** 0:全量1:增量 */
    @Excel(name = "0:全量1:增量")
    private String increaseAll;

    /** D:日M:月Y:年 */
    @Excel(name = "D:日M:月Y:年")
    private String cycle;

    /** 表列信息 */
    @Valid
    private List<BocLakeTableColumn> columns;

    public void setTableId(Long tableId)
    {
        this.tableId = tableId;
    }

    public Long getTableId()
    {
        return tableId;
    }
    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public String getTableName()
    {
        return tableName;
    }
    public void setTableComment(String tableComment)
    {
        this.tableComment = tableComment;
    }

    public String getTableComment()
    {
        return tableComment;
    }
    public void setLakeName(String lakeName)
    {
        this.lakeName = lakeName;
    }

    public String getLakeName()
    {
        return lakeName;
    }
    public void setIncreaseAll(String increaseAll)
    {
        this.increaseAll = increaseAll;
    }

    public String getIncreaseAll()
    {
        return increaseAll;
    }
    public void setCycle(String cycle)
    {
        this.cycle = cycle;
    }

    public String getCycle()
    {
        return cycle;
    }

    public List<BocLakeTableColumn> getColumns() {
        return columns;
    }

    public void setColumns(List<BocLakeTableColumn> columns) {
        this.columns = columns;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("tableId", getTableId())
                .append("tableName", getTableName())
                .append("tableComment", getTableComment())
                .append("lakeName", getLakeName())
                .append("increaseAll", getIncreaseAll())
                .append("cycle", getCycle())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
